package com.poly.ureport.pojo.dto;

import com.poly.common.core.validate.Add;
import com.poly.common.core.validate.Update;
import com.poly.common.core.web.domain.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

/**
 * 报对象 sys_report
 * 
 * @author poly
 * @date 2024-02-19
 */
@ApiModel(value = "SysReportDTO", description = "报")
@Data
public class SysReportDTO extends BaseDTO
{
    private static final long serialVersionUID = 1L;

    /**
     * 报表主键
     */
    @ApiModelProperty("报表主键")
    private Long id;

    /**
     * 报表名称
     */
    @ApiModelProperty("报表名称")
    @Size(message = "报表名称长度必须小于50个字符",max = 50,groups = {Add.class,Update.class})
    //@Pattern(message = "报表名称格式不正确",regexp = “<正则表达式>”,groups = {Add.class,Update.class})
    private String name;

    /**
     * 报表内容
     */
    @ApiModelProperty("报表内容")
    private String content;

    /**
     * 状态
     */
    @ApiModelProperty("状态")
    private Integer status;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    @Size(message = "备注长度必须小于255个字符",max = 255,groups = {Add.class,Update.class})
    private String remark;

}
